<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <h1>{{title}}</h1>
        <p v-for="(l,i) in items" :key="i">
            {{l.title}} -- {{i}}
        </p>
        <p v-for="(value,key,index) in Object" :key="value">
            {{index}} -- {{key}} : {{value}}
        </p>
    </div>
</body>
<script>
    const vm = new Vue({
        data: {
            title: "v-for 列表渲染",
            items: [
                {
                    title: "Vue"
                },
                {
                    title: "react"
                },
                {
                    title: "PHP"
                }
            ],
            Object: {
                name: "Zhao ritian",
                sex: "男",
                age: 18,
                class: 2105,
            }

        }
    }).$mount("#app")
</script>

</html>